const { defineConfig } = require('@vue/cli-service')
const path = require('path')
const resolve = (dir) => {
  return path.resolve(__dirname, dir)
}
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  publicPath: '/main',
  configureWebpack: {
    resolve: {
      alias: {
        '@': resolve('src')
      }
    },
  },
  devServer: {
    proxy: {
      '/admin-api': {
        target: 'http://10.250.6.201:80',
        changeOrigin: true
      }
    },
  },
})
